import request from '@/utils/request'

// 获取基础配置
export function basicGet(params: any) {
    return request.get({ url: '/basic.system_config/basicGet', params })
}
// 保存基础配置
export function basicSet(params: any) {
    return request.post({ url: '/basic.system_config/basicSet', params })
}
// 获取系统配置
export function systemGet(params: any) {
    return request.get({ url: '/basic.system_config/get', params })
}
// 上传图片
export function uploadImage(params: any) {
    return request.post({ url: '/upload/image', params })
}
// 保存系统配置
export function systemSet(params: any) {
    return request.post({ url: '/basic.system_config/set', params })
}
// 获取系统消息列表
export function GetMessage(params: any) {
    return request.get({ url: '/message/lists', params })
}
// 获取系统消息列表
export function GetMessageDetail(params: any) {
    return request.get({ url: '/message/detail', params })
}
//获取目标列表
export function getTarget(params: any) {
    return request.get({ url: '/message/getTarget', params })
}
//发布消息
export function publish(params: any) {
    return request.post({ url: '/message/publish', params })
}
//发送短信验证码
export function sendCode(params: any) {
    return request.post({ url: '/sms/sendCode', params },{ urlPrefix: 'common' })
}
//重置登录密码
export function editPassword(params: any) {
    return request.post({ url: '/auth.admin/editPassword', params })
}